﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FortuneArterial.Core.IO
{
    public class DirectoryHelper
    {
        public static void CreateDirectory(string path)
        {
            //获取path的目录
            string dir = path.EndsWith(@"\") ? path : Path.GetDirectoryName(path);
            if (!Directory.Exists(dir))
            {
                Directory.CreateDirectory(dir);
            }
        }
    }
}
